/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.enums;

import java.util.HashMap;
import java.util.Map;

/**
 *@ClassName: PackScanOperTypeEnum
 *@Description: 包装管理扫码类型Enum
 *@author youjun
 *@date 2017年8月16日 下午4:12:57
 */
public enum PackScanOperTypeEnum {

	// split:拆  group：组  fill：补  box：箱    stack:垛
	/**1、组/补箱*/
	GROUP_OR_FILL_BOX(1, "组/补箱"),
	
	/**2、拆箱*/
	SPLIT_BOX(2, "拆箱"),
	
	/**3、补垛*/
	GROUP_OR_FILL_STACK(3, "补垛"),
	
	/**4、拆垛*/
	SPLIT_STACK(4, "拆垛"),
	
	/**5、新增垛*/
	ADD_NEW_STACK(5, "新增垛");
	
	private Integer id;
	
	private String name;

	/**
	 *@Title: PackScanOperTypeEnum
	 *@Description: TODO
	 *@param id
	 *@param name
	 */
	private PackScanOperTypeEnum(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

	/**
	 *@Title: getAll
	 *@Description: TODO()
	 *@return Map<Integer,String>
	 *@author youjun
	 *@date 2017年8月16日 下午5:32:07
	 *@return
	 */
	public static Map<Integer, String> getAll() {
		final Map<Integer, String> statusMap = new HashMap<Integer, String>();
		for(final PackScanOperTypeEnum item:PackScanOperTypeEnum.values()) {
			statusMap.put(item.getId(), item.getName());
		}
		return statusMap;
	}
	
	/**
	 *@return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 *@param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 *@return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 *@param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	
}
